import request from '@/utils/request'

// 偏远地址库-列表
export const farAddressList = data =>
  request({
    url: `/base/far-address/index`,
    method: 'post',
    data,
  })

// 偏远地址库-详情
export const farAddressDetail = params =>
  request({
    url: `/base/far-address/detail`,
    method: 'get',
    params,
  })

// 偏远地址库-创建
export const createFarAddress = data =>
  request({
    url: `/base/far-address/create`,
    method: 'post',
    data,
  })

// 偏远地址库-编辑
export const updateFarAddress = data =>
  request({
    url: `/base/far-address/update`,
    method: 'post',
    data,
  })

// 偏远地址库-删除
export const deleteFarAddress = data =>
  request({
    url: `/base/far-address/delete`,
    method: 'post',
    data,
  })

// 偏远地址库-启用禁用
export const statusFarAddress = data =>
  request({
    url: `/base/far-address/status`,
    method: 'post',
    data,
  })
